@import './common.less';

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
}

.playground-container {
  width: 100%;
  height: 100%;

  &.vertical-mode {
    height: inherit;

    .form-part {
      margin-bottom: 15px;

      h3 {
        font-size: 14px;
        line-height: 1.6;
      }
    }
  }

  .playground-header {
    padding: 10px 10px 30px;
  }

  .playground-left-panel {
    width: 100%;
    height: 100%;
    background-color: #FFF;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto !important;

    .ant-form {
    height: 100%;

      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }

  .form-part {
    margin-bottom: @layout-extension-space-vertical;
    padding: 0 @layout-extension-space-horizontal;

    h3 {
      margin-top: 0;
      margin-bottom: 12px;
      font-size: 18px;
    }

    .switch-btn-wrapper {
      margin-left: 2px;
    }
  }

  .input-wrapper {
    box-sizing: border-box;

    .main-side-console-input {
      position: relative;
      margin-top: 4px;
    }

    .ant-input {
      padding-bottom: 40px;
    }

    .form-controller-wrapper {
      position: absolute;
      bottom: 8px;
      padding: 0 12px;
      left: 0px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      width: 100%;
      box-sizing: border-box;
      align-items: flex-end;
      gap: 8px;
    }

    .settings-wrapper {
      &.settings-wrapper-hover {
        color: @main-text;
      }

      display: flex;
      flex-direction: row;
      gap: 2px;
      color: @weak-text;
      flex-wrap: wrap;
    }

    .history-selector {
      margin-right: 8px;
    }
  }


  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: @layout-extension-space-vertical @layout-extension-space-horizontal;

    .loading-progress-text {
      text-align: center;
      width: 100%;
      color: @weak-text;
      margin-top: 16px;
    }

    .loading-progress-text-tab-info {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .loading-progress-text-progress {
      height: 60px;
    }
  }

  .result-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: @layout-extension-space-vertical @layout-extension-space-horizontal;
    background-color: @side-bg;
    border-radius: 4px;

    &.result-wrapper-compact {
      padding: 0;
    }

    &.vertical-mode-result {
      height: inherit;
      min-height: 300px;
    }

    .result-empty-tip {
      text-align: center;
      width: 100%;
      color: @footer-text;
    }

    pre {
      display: block;
      word-wrap: break-word;
      white-space: pre-wrap;    
    }
  }
}
